<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<s:errors/> <!-- vypise chybova hlaseni, pokud nejaka jsou -->

<!-- keby som chcela byt zase chytra a babrat sa tu s tym, tak pozor na nazvy: -->
    <!--s:label for="g1" name="ghosts.name"  - toto je ghostS.name, teda nazov property z locale   -->
    <!--s:text id="g1" name="ghost.name"     - toto je ghost(ziadne S!).name, teda premenna z beany a jej atribut -->

<table class="form">
    <tr>
        <th><s:label for="g1" name="ghosts.name"/></th>
        <td><s:text id="g1" name="ghost.name"/></td>
    </tr>
    <tr>
        <th><s:label for="g2" name="ghosts.hauntingFrom"/></th>
        <td><s:text name="ghost.hauntingFrom" formatPattern="HH:mm:ss" value="00:00:00" /></td>
    </tr>
    <tr>
        <th><s:label for="g3" name="ghosts.hauntingTo"/></th>
        <td><s:text id="g3" name="ghost.hauntingTo" formatPattern="HH:mm:ss" value="23:59:59" /></td>
    </tr>
    <tr>
        <th><s:label for="g4" name="ghosts.power"/></th>
        <td><s:text id="g4" name="ghost.power" />%</td>
    </tr>
    <tr>
        <th><s:label for="g5" name="ghosts.description"/></th>
        <td><s:textarea id="g5" name="ghost.description"/></td>
    </tr>
</table>
